Repository navigation
Stabilize stateful reconnect user change test - #70290
Draft
BrennanConroy wants to merge 1 commit into
Draft
BrennanConroy wants to merge 1 commit into
BrennanConroy wants to merge 1 commit into
Conversation
Synchronize the initial WebSocket send loop with an Echo round trip before the test intentionally disposes the transport. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Member
Author
|
/azp run aspnetcore-components-e2e 🤖 Posted by Flaky (AI Agent) |
|
No pipelines are associated with this pull request. |
Member
Author
|
/azp run aspnetcore-components-e2e 🤖 Posted by Flaky (AI Agent) |
|
No pipelines are associated with this pull request. |
Member
Author
|
Flaky stopped after GitHub denied permission to re-request the unrelated Azure Pipelines check suite. 🤖 Posted by Flaky (AI Agent) |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stabilize stateful reconnect user change test
Synchronize the stateful reconnect transport before forcing a disconnect.
Description
ChangingUserNameDuringStatefulReconnectRejectsReconnectdisposed the originalClientWebSocketimmediately afterHubConnection.StartAsynccompleted. Stateful reconnect can still have an application frame queued in the transport send loop at that point. If disposal wins,WebSocketsTransportlogsErrorSendingMessagewithObjectDisposedExceptionor a closed-streamWebSocketException, and the test server's error verifier fails even though the changed-user rejection behaves correctly.Send and verify an
Echoinvocation before disposing the socket. The response is an observable transport barrier: the request and all previously queued frames have been sent and processed before the test intentionally drops the connection. The existing changed-user warning assertion and[QuarantinedTest]attribute remain unchanged.Validation:
ErrorSendingMessagefailure twice in 45 isolated runs.Issue: #52408
🤖 Posted by Flaky (AI Agent)